﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppScan
{
    class container
    {
        Form1 frm = new Form1();
        public string ipaddr = string.Empty;
        public System.Windows.Forms.TreeView tree = new System.Windows.Forms.TreeView();
        public string username = string.Empty;
        public string password = string.Empty;
        public string[] opts = new string[] { string.Empty };
        public bool killswitch = false;
        //private string prefix = string.Empty;
        public bool installpkg_scan = false;
        public bool qfe_scan = false;
        public bool misc_scan = false;
        public string reader = String.Empty;
        public System.Windows.Forms.RichTextBox rtb = new System.Windows.Forms.RichTextBox();

        public void RunThread()
        {
            //if (misc_scan)
            //{
            //    //System.Windows.Forms.TreeView tr = tree;
            //    //string[] opt = new string[] { "os", "list", "full" };
            //    //frm.useWMIC(ipaddr, username, password, opt);
            //    frm.useWMI_misc(ipaddr, username, password, tree, installpkg_scan, qfe_scan, rtb);
            //}

            //if (installpkg_scan)
            //{
            //    frm.useWMI_installedapps(ipaddr, username, password, tree, qfe_scan, misc_scan);
            //}

            //if (qfe_scan)
            //{
            //   // string[] opt = new string[] { "qfe", "list", "full" };
            //   // frm.useWMIC(ipaddr, username, password, opt);
            //    frm.useWMI_qfe(ipaddr, username, password, tree, installpkg_scan, misc_scan);
            //}
            ////reader = "Finished scan on " + ipaddr;
            //frm.msg();
            ////send done signal back to user
            ////color should be 
        }

    }
}
